package com.lagou.controller;

import com.lagou.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zhangbbk
 * @Description //TODO
 * @Date 2020/5/9 22:16
 **/
@RestController
@RequestMapping("code")
public class CodeController {

    @Autowired
    private CodeService codeService;

    @GetMapping("/create/{email}")
    public Boolean createCode(@PathVariable("email") String email) {

        return codeService.createCode(email);
    }
}
